/* 
 * File:   Action.cxx
 * Author: enric
 * 
 * Created on 26 de enero de 2012, 19:07
 */

#include "Action.hxx"

Action::Action( unsigned id, std::string name )
        : m_identifier( id ), m_name( name ), m_cost( 1 )
{}


Move::Move( unsigned src_id, unsigned dst_id , unsigned id, std::string name )
	: Action( id, name ), m_source_id( src_id ), m_destination_id( dst_id ) 
{
}

Move::~Move()
{
}

PickUp::PickUp( unsigned cell_id, unsigned key_id, unsigned id, std::string name )
	: Action( id, name ), m_cell_id( cell_id ), m_key_id( key_id )
{
}

PickUp::~PickUp()
{
}

PutDown::PutDown( unsigned cell_id, unsigned key_id, unsigned id, std::string name )
	: Action( id, name ), m_cell_id( cell_id ), m_key_id( key_id )
{
}

PutDown::~PutDown()
{
}

Open::Open( unsigned src_id, unsigned dst_id, unsigned key_id, unsigned id, std::string name )
	: Action( id, name ), m_source_id( src_id ), m_destination_id( dst_id ), m_key_id( key_id )
{
}

Open::~Open()
{
}